// 商品相关接口
import request from '@/utils/request'

// 商品搜索列表数据
export const getProductListApi = (params) => {
    const {categoryId, goodsName, page} = params
    return request.get('/goods/list', {
        params: {
            categoryId,
            goodsName,
            page
        }
    })
}
// 商品详情
export const getProductDetailApi = (goodsId) => {
    return request.get('/goods/detail', {
        params: {
            goodsId
        }
    })
}

// 获取商品评价
export const getProductCommentApi = (goodsId, limits) => {
    return request.get('/comment/listRows', {
        params: {
            goodsId,
            limits
        }
    })
}



